package cn.com.guage.dtm.verify.service.impl;

import java.util.List;
import cn.com.guage.dtm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.guage.dtm.verify.mapper.VerifyAccountTaskManageMapper;
import cn.com.guage.dtm.verify.domain.VerifyAccountTaskManage;
import cn.com.guage.dtm.verify.service.IVerifyAccountTaskManageService;
import cn.com.guage.dtm.common.core.text.Convert;

/**
 * 账务检核作业管理Service业务层处理
 * 
 * @author yangdechao
 * @date 2021-06-24
 */
@Service
public class VerifyAccountTaskManageServiceImpl implements IVerifyAccountTaskManageService 
{
    @Autowired
    private VerifyAccountTaskManageMapper verifyAccountTaskManageMapper;

    /**
     * 查询账务检核作业管理
     * 
     * @param taskId 账务检核作业管理ID
     * @return 账务检核作业管理
     */
    @Override
    public VerifyAccountTaskManage selectVerifyAccountTaskManageById(Long taskId)
    {
        return verifyAccountTaskManageMapper.selectVerifyAccountTaskManageById(taskId);
    }

    /**
     * 查询账务检核作业管理列表
     * 
     * @param verifyAccountTaskManage 账务检核作业管理
     * @return 账务检核作业管理
     */
    @Override
    public List<VerifyAccountTaskManage> selectVerifyAccountTaskManageList(VerifyAccountTaskManage verifyAccountTaskManage)
    {
        return verifyAccountTaskManageMapper.selectVerifyAccountTaskManageList(verifyAccountTaskManage);
    }

    /**
     * 新增账务检核作业管理
     * 
     * @param verifyAccountTaskManage 账务检核作业管理
     * @return 结果
     */
    @Override
    public int insertVerifyAccountTaskManage(VerifyAccountTaskManage verifyAccountTaskManage)
    {
        verifyAccountTaskManage.setCreateTime(DateUtils.getNowDate());
        return verifyAccountTaskManageMapper.insertVerifyAccountTaskManage(verifyAccountTaskManage);
    }

    /**
     * 修改账务检核作业管理
     * 
     * @param verifyAccountTaskManage 账务检核作业管理
     * @return 结果
     */
    @Override
    public int updateVerifyAccountTaskManage(VerifyAccountTaskManage verifyAccountTaskManage)
    {
        verifyAccountTaskManage.setUpdateTime(DateUtils.getNowDate());
        return verifyAccountTaskManageMapper.updateVerifyAccountTaskManage(verifyAccountTaskManage);
    }

    /**
     * 删除账务检核作业管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteVerifyAccountTaskManageByIds(String ids)
    {
        return verifyAccountTaskManageMapper.deleteVerifyAccountTaskManageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除账务检核作业管理信息
     * 
     * @param taskId 账务检核作业管理ID
     * @return 结果
     */
    @Override
    public int deleteVerifyAccountTaskManageById(Long taskId)
    {
        return verifyAccountTaskManageMapper.deleteVerifyAccountTaskManageById(taskId);
    }
}
